import axios from 'axios'
var baseURL = "http://www.chengbenchao.top";
function http({
    method,
    url,
    data
}){
    return new Promise((resolve,reject)=>{
        axios({
            method,
            url: baseURL+url,
            data,
        }).then((res)=>{
            resolve(res)
        })
    })
}
export default http;